<div id="chooseReceiptDlg" style="display: none;" title="Choose Receipt">
	<div  class="select-receipt form">
		<?php
		$this->widget('PsGridView', array(
			'id' => 'receipt-index-grid',
			'dataProvider' => $receiptDataProvider,
			'filter' => $searchReceipt,
			'template' => '{items}{pager}{pagesize}',
			'htmlOptions' => array(
				'class' => 'grid-view grey'
			),
			'pagerCssClass' => 'pager float-right',
			'pagesizeCssClass' => 'pager-pagesize float-right',
			'columns' => array(
				array(
					'name' => 'id',
					'type' => 'raw',
					'filter' => false,
					'value' => 'CHtml::radioButton("receipt_id", false, array("value" => $data->id))',
					'htmlOptions' => array('width' => '10px'),
				),
				'payment_date' => array(
					'name' =>'payment_date',
					'filter' => false,
					'value' => 'Yii::app()->dateFormatter->formatDateTime(strtotime($data->payment_date), "short", null)',
					'htmlOptions' => array(
						'width' => 100,
					),
				),
				'payment_number' => array(
					'name' => 'payment_number',
					'htmlOptions' => array(
						'width' => 170,
						'class' => 'payment_number'
					)
				),
				'payer_name',
				'amount' => array(
					'name' =>'amount',
					'header' => 'Total Receipt Amount',
					'filter' => false,
					'value' => 'Yii::app()->numberFormatter->formatCurrency($data->amount, $data->currency_code)',
					'htmlOptions' => array(
						'width' => 120,
					),
				),
				'payment_ref_no' => array(
					'name' =>'payment_ref_no',
					'header' => 'Ref No'
				),
			),
		));
		?>
	</div>
</div>